/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

/**
 * 代码生成器
 */
const genRouter = {
  path: '/gen',
  component: Layout,
  redirect: '/permission/page',
  alwaysShow: true,
  meta: {
    title: '代码生成器',
    icon: 'lock'
  },
  name: 'Generate',
  children: [
    {
      path: '/gen/config/index',
      component: () => import('@/views/gen/config/index'),
      name: 'GenConfig',
      meta: {
        title: '公共配置管理',
        icon: 'lock'
      }
    },
    {
      path: '/gen/config/add',
      component: () => import('@/views/gen/config/add'),
      name: 'GenConfigAdd', hidden: true,
      meta: {
        title: '公共配置新增',
        icon: 'lock'
      }
    }, {
      path: '/gen/config/update',
      component: () => import('@/views/gen/config/update'),
      name: 'GenConfigUpdate', hidden: true,
      meta: {
        title: '公共配置管理修改',
        icon: 'lock'
      }
    },
    {
      path: '/gen/table/index',
      component: () => import('@/views/gen/table/index'),
      name: 'GenTable',
      meta: {
        title: '数据表管理',
        icon: 'lock'
      }
    },
    {
      path: '/gen/field/index',
      component: () => import('@/views/gen/field/index'),
      name: 'GenField', hidden: true,
      meta: {
        title: '字段管理',
        icon: 'lock'
      }
    },
    {
      path: '/gen/field/loadField',
      component: () => import('@/views/gen/field/loadField'),
      name: 'GenLoadField', hidden: true,
      meta: {
        title: '加载数据表字段',
        icon: 'lock'
      }
    }/*,
    {
      path: '/gen/table/add',
      component: () => import('@/views/gen/table/add'),
      name: 'GenTableAdd',
      meta: {
        title: '数据表新增',
        icon: 'lock'
      }
    }, {
      path: '/gen/table/update',
      component: () => import('@/views/gen/table/update'),
      name: 'GenTableUpdate',
      meta: {
        title: '数据表修改',
        icon: 'lock'
      }
    }*/
  ]
}

export default genRouter
